function dyx_new(func, ...args){
    if(typeof func !== 'function'){
        console.error('func not a Function')
    }
    if(!func.prototype){
        console.error('func not have prototype')
    }
    const obj = Object.create(null);
    obj.__proto__ = func.prototype;
    obj.constructor = func;
    const res = func.call(obj, ...args);
    return typeof res === 'object' ? res : obj;
}

